// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
/* 全部引入 */
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import echarts from 'echarts'
Vue.prototype.$echarts = echarts

Vue.prototype.$bus = new Vue()
Vue.use(ElementUI)
Vue.prototype.$echarts = echarts
/* 按需引入 */
// import { Button, Select, Table } from 'element-ui'
// Vue.use(Button)
// Vue.use(Select)
// Vue.use(Table)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App),
  components: {App},
  template: '<App/>'
})
